import getEnumsManager from '@/common/enum';

export const DayTimeEnum = getEnumsManager([
  { value: '0', text: '上午', name: 'Morning' },
  { value: '1', text: '下午', name: 'Afternoon' },
  { value: '2', text: '晚上', name: 'Night' },
  { value: '3', text: '全天', name: 'AllDay' }
]);

// 是否请假
export const HasLeaveEnum = getEnumsManager([
  { value: '12', text: '全部', name: 'All' },
  { value: '0', text: '否', name: 'Morning' },
  { value: '1', text: '是', name: 'Afternoon' }
]);
// 请假状态
export const LeaveStatsEnum = getEnumsManager([
  // { value: '0', text: '未请假', name: 'NoLeave' },
  { value: '1', text: '请假审批中', name: 'AuditLeave' },
  { value: '2', text: '已请假', name: 'IsLeave' },
  { value: '3', text: '请假驳回', name: 'Reject' }
]);

// 审核结论
export const AuditResultEnum = getEnumsManager([
  { value: '1', text: '同意', name: 'Agree' },
  { value: '0', text: '不同意', name: 'Disagree' }
]);

// tab页

export const lifeTabsBaseEnum = getEnumsManager([
  { value: 'baseInfo', text: '基本信息', name: 'baseInfo' },
  { value: 'attendance', text: '考勤信息', name: 'attendance' }
]);
export const lifeTabsAllEnum = getEnumsManager([
  { value: 'baseInfo', text: '基本信息', name: 'baseInfo' },
  { value: 'attendance', text: '考勤信息', name: 'attendance' },
  { value: 'evaluate', text: '评议党员', name: 'evaluate' }
]);
export const lifeTabsCreateEnum = getEnumsManager([
  { value: 'baseInfo', text: '基本信息', name: 'baseInfo' }
]);

// 活动类型
export const activityTypeEnum = getEnumsManager([
  { value: '01', text: '支部党员大会', name: 'ZBDY' },
  { value: '02', text: '支部委员会', name: 'ZBWY' },
  { value: '03', text: '党小组会', name: 'DXZ' },
  { value: '04', text: '党课', name: 'DK' },
  { value: '06', text: '组织生活会', name: 'ZZSHH' },
  { value: '07', text: '民主评议', name: 'MZPY' },
  { value: '08', text: '主题党日', name: 'ZTDR' },
  { value: '10', text: '其他', name: 'Other' }
]);
export const lifeStateEnum = getEnumsManager([
  { value: '1', text: '筹备中', name: 'Ready' },
  { value: '2', text: '报名中', name: 'Register' },
  { value: '3', text: '进行中', name: 'Ongoing' },
  { value: '4', text: '已结束', name: 'Completed' },
  { value: '8', text: '已取消', name: 'Cancel' }
]);
